.class public Llt/noframe/gpsfarmguide/utils/Preferences;
.super Ljava/lang/Object;
.source "Preferences.java"


# static fields
.field public static final ADS_REMOVED:Llt/minvib/magicpreferences/MagicBooleanPreference;

.field public static final ADS_REMOVED_SELECTED_SKU:Llt/minvib/magicpreferences/MagicStringPreference;

.field public static final AD_SHOW_COUNTER:Llt/minvib/magicpreferences/MagicIntegerPreference;

.field public static final AREA_SHOWN_AS_POLYLINE:Llt/minvib/magicpreferences/MagicBooleanPreference;

.field public static final FIRST_RUN:Llt/minvib/magicpreferences/MagicBooleanPreference;

.field public static final GPS_REFRESH_RATE:Llt/minvib/magicpreferences/MagicFloatPreference;

.field public static final GPS_USB_BAUD_RATE:Llt/minvib/magicpreferences/MagicIntegerPreference;

.field public static final GPS_USB_DATA_BITS:Llt/minvib/magicpreferences/MagicIntegerPreference;

.field public static final GPS_USB_FLOW_CONTROL:Llt/minvib/magicpreferences/MagicIntegerPreference;

.field public static final GPS_USB_PARITY:Llt/minvib/magicpreferences/MagicIntegerPreference;

.field public static final GPS_USB_STOP_BITS:Llt/minvib/magicpreferences/MagicIntegerPreference;

.field public static final RUN_TUTORIALS_DIALOG_SKIP:Llt/minvib/magicpreferences/MagicBooleanPreference;

.field public static final SHOW_WIDTH_AND_MODE_HINT:Llt/minvib/magicpreferences/MagicIntegerPreference;


# direct methods
.method static constructor <clinit>()V
    .locals 8

    .line 33
    new-instance v0, Llt/minvib/magicpreferences/MagicBooleanPreference;

    const/4 v1, 0x0

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v3, 0x0

    const-string v4, "run_tutorials_skip"

    invoke-direct {v0, v3, v4, v2}, Llt/minvib/magicpreferences/MagicBooleanPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->RUN_TUTORIALS_DIALOG_SKIP:Llt/minvib/magicpreferences/MagicBooleanPreference;

    .line 36
    new-instance v0, Llt/minvib/magicpreferences/MagicBooleanPreference;

    const/4 v4, 0x1

    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    const-string v6, "first_run"

    invoke-direct {v0, v3, v6, v5}, Llt/minvib/magicpreferences/MagicBooleanPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->FIRST_RUN:Llt/minvib/magicpreferences/MagicBooleanPreference;

    .line 42
    new-instance v0, Llt/minvib/magicpreferences/MagicIntegerPreference;

    const-string v6, "ad_show_counter"

    invoke-direct {v0, v3, v6, v1}, Llt/minvib/magicpreferences/MagicIntegerPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->AD_SHOW_COUNTER:Llt/minvib/magicpreferences/MagicIntegerPreference;

    .line 49
    new-instance v0, Llt/minvib/magicpreferences/MagicIntegerPreference;

    const-string v6, "show_width_and_mode_hint"

    invoke-direct {v0, v3, v6, v1}, Llt/minvib/magicpreferences/MagicIntegerPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->SHOW_WIDTH_AND_MODE_HINT:Llt/minvib/magicpreferences/MagicIntegerPreference;

    .line 52
    new-instance v0, Llt/minvib/magicpreferences/MagicIntegerPreference;

    const/16 v6, 0x12c0

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    const-string v7, "gps_usb_baud_rate"

    invoke-direct {v0, v3, v7, v6}, Llt/minvib/magicpreferences/MagicIntegerPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->GPS_USB_BAUD_RATE:Llt/minvib/magicpreferences/MagicIntegerPreference;

    .line 53
    new-instance v0, Llt/minvib/magicpreferences/MagicIntegerPreference;

    const/16 v6, 0x8

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    const-string v7, "gps_usb_data_bits"

    invoke-direct {v0, v3, v7, v6}, Llt/minvib/magicpreferences/MagicIntegerPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->GPS_USB_DATA_BITS:Llt/minvib/magicpreferences/MagicIntegerPreference;

    .line 54
    new-instance v0, Llt/minvib/magicpreferences/MagicIntegerPreference;

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    const-string v6, "gps_usb_stop_bits"

    invoke-direct {v0, v3, v6, v4}, Llt/minvib/magicpreferences/MagicIntegerPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->GPS_USB_STOP_BITS:Llt/minvib/magicpreferences/MagicIntegerPreference;

    .line 55
    new-instance v0, Llt/minvib/magicpreferences/MagicIntegerPreference;

    const-string v4, "gps_usb_parity"

    invoke-direct {v0, v3, v4, v1}, Llt/minvib/magicpreferences/MagicIntegerPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->GPS_USB_PARITY:Llt/minvib/magicpreferences/MagicIntegerPreference;

    .line 56
    new-instance v0, Llt/minvib/magicpreferences/MagicIntegerPreference;

    const-string v4, "gps_usb_flow_control"

    invoke-direct {v0, v3, v4, v1}, Llt/minvib/magicpreferences/MagicIntegerPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->GPS_USB_FLOW_CONTROL:Llt/minvib/magicpreferences/MagicIntegerPreference;

    .line 58
    new-instance v0, Llt/minvib/magicpreferences/MagicFloatPreference;

    const/high16 v1, 0x40000000    # 2.0f

    invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    const-string v4, "gps_refresh_rate"

    invoke-direct {v0, v3, v4, v1}, Llt/minvib/magicpreferences/MagicFloatPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Float;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->GPS_REFRESH_RATE:Llt/minvib/magicpreferences/MagicFloatPreference;

    .line 61
    new-instance v0, Llt/minvib/magicpreferences/MagicBooleanPreference;

    const-string v1, "area_shown_as_polyline"

    invoke-direct {v0, v3, v1, v5}, Llt/minvib/magicpreferences/MagicBooleanPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->AREA_SHOWN_AS_POLYLINE:Llt/minvib/magicpreferences/MagicBooleanPreference;

    .line 65
    new-instance v0, Llt/minvib/magicpreferences/MagicBooleanPreference;

    const-string v1, "ads_removed"

    invoke-direct {v0, v3, v1, v2}, Llt/minvib/magicpreferences/MagicBooleanPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->ADS_REMOVED:Llt/minvib/magicpreferences/MagicBooleanPreference;

    .line 66
    new-instance v0, Llt/minvib/magicpreferences/MagicStringPreference;

    const-string v1, "ads_remove_selected_sku"

    const-string v2, "remove_ads"

    invoke-direct {v0, v3, v1, v2}, Llt/minvib/magicpreferences/MagicStringPreference;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    sput-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->ADS_REMOVED_SELECTED_SKU:Llt/minvib/magicpreferences/MagicStringPreference;

    return-void
.end method

.method public static getAreaUnit(Landroid/content/Context;)Ljava/lang/String;
    .locals 2

    .line 87
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    const-string v0, "area_unit"

    const-string v1, "ha"

    .line 88
    invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static getDeflectionUnit(Landroid/content/Context;)Ljava/lang/String;
    .locals 2

    .line 109
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    const-string v0, "deflection_unit"

    const-string v1, "m"

    .line 110
    invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static getDistanceUnit(Landroid/content/Context;)Ljava/lang/String;
    .locals 2

    .line 76
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    const-string v0, "distance_unit"

    const-string v1, "m"

    .line 77
    invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static getGpsAccuracyUnit(Landroid/content/Context;)Ljava/lang/String;
    .locals 2

    .line 120
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    const-string v0, "accuracy_unit"

    const-string v1, "m"

    .line 121
    invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static getGpsLocationInTractor(Landroid/content/Context;)D
    .locals 2

    .line 143
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    const-string v0, "gps_location_in_tractor"

    const/4 v1, 0x0

    .line 144
    invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getFloat(Ljava/lang/String;F)F

    move-result p0

    float-to-double v0, p0

    return-wide v0
.end method

.method public static getImplementLocation(Landroid/content/Context;)D
    .locals 2

    .line 155
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    const-string v0, "implement_location"

    const/high16 v1, 0x3f800000    # 1.0f

    .line 156
    invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getFloat(Ljava/lang/String;F)F

    move-result p0

    float-to-double v0, p0

    return-wide v0
.end method

.method public static getMinimalGpsAccuracy(Landroid/content/Context;)D
    .locals 2

    .line 132
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    const-string v0, "minimal_gps_accuracy"

    const/high16 v1, 0x40a00000    # 5.0f

    .line 133
    invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getFloat(Ljava/lang/String;F)F

    move-result p0

    float-to-double v0, p0

    return-wide v0
.end method

.method public static getSpeedUnit(Landroid/content/Context;)Ljava/lang/String;
    .locals 2

    .line 98
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    const-string v0, "speed_unit"

    const-string v1, "km/h"

    .line 99
    invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static isDisplaySprayedArea(Landroid/content/Context;)Z
    .locals 2

    .line 366
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    const-string v0, "display_sprayed"

    const/4 v1, 0x1

    .line 367
    invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result p0

    return p0
.end method

.method public static isKeepScreenOn(Landroid/content/Context;)Z
    .locals 2

    .line 355
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    const-string v0, "keep_screen_on"

    const/4 v1, 0x0

    .line 356
    invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result p0

    return p0
.end method

.method public static setGpsLocationInTractor(Landroid/content/Context;D)V
    .locals 0

    .line 254
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    .line 255
    invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object p0

    double-to-float p1, p1

    const-string p2, "gps_location_in_tractor"

    .line 256
    invoke-interface {p0, p2, p1}, Landroid/content/SharedPreferences$Editor;->putFloat(Ljava/lang/String;F)Landroid/content/SharedPreferences$Editor;

    .line 257
    invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    return-void
.end method

.method public static setImplementLocation(Landroid/content/Context;D)V
    .locals 0

    .line 267
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p0

    .line 268
    invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object p0

    double-to-float p1, p1

    const-string p2, "implement_location"

    .line 269
    invoke-interface {p0, p2, p1}, Landroid/content/SharedPreferences$Editor;->putFloat(Ljava/lang/String;F)Landroid/content/SharedPreferences$Editor;

    .line 270
    invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    return-void
.end method
